﻿using ESRI.ArcGIS.ADF.BaseClasses;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PlanningGIS.Framework;

namespace PlanningGIS.CoordCovert
{
    /// <summary>
    /// 
    /// </summary>
    public class btnRasterProject : BaseCommand
    {
        /// <summary>
        /// 
        /// </summary>
        IApplication m_Application = null;

        /// <summary>
        /// 
        /// </summary>
        public btnRasterProject()
        {
            base.m_caption = "栅格数据投影";
            base.m_toolTip = base.m_caption;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="hook"></param>
        public override void OnCreate(object hook)
        {
            m_Application = hook as IApplication;
        }

        /// <summary>
        /// 
        /// </summary>
        public override bool Enabled
        {
            get
            {
                return (m_Application as IFramework).IsMapCtrlactive;
            }
        }

        /// <summary>
        /// 
        /// </summary>
        public override void OnClick()
        {
            FrmRasterProject frm = new FrmRasterProject();
            frm.Show((m_Application as IFramework).MdiForm);
        }
        
    }
}
